package column


import (
	"github.com/treelab/updatecolumn/models"
)

  func instanceType() int32 {
    return models.Phone
  }

  deleteColumnEdges() {
    return this;
  }

  async convertColumn(
    command: UpdateColumn_v2,
    o: CommonOptions,
    helper: { rows?: Row[]; columnCopy?: Column; referenceColumns?: Column[]; userGroup?: any },
    updateColumnHelper?: UpdateColumnHelper,
  ) {
    // super.convertColumn(command, o, helper);
    const { column } = command;
    if ([ColumnType.PHONE].includes(column.columnType)) {
      super.updateColumn(command, o, helper);
      return this;
    }
    this.defaultConvert({ command }, o, helper, updateColumnHelper);
    return this;
  }

